package com.qf.service.impl;

import com.qf.entity.WmsPm;
import com.qf.mapper.WmsPmMapper;
import com.qf.service.WmsPmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * --- 愿许秋风知我意，赐我十亿人民币 ---
 *
 * @author HeErkang
 * @date 2024/7/22
 * @desc --- 万一赢了呢？ ---
 * @desc --- 今日课程 ---
 */
@Service
public class WmsPmServiceImpl implements WmsPmService {

    @Autowired
    private WmsPmMapper mapper;

    @Override
    public List<WmsPm> findAll(HashMap<String, String> map) {
        return mapper.findAll(map);
    }

    @Override
    public boolean deleteById(int pmId) {
        return mapper.deleteById(pmId);
    }

    @Override
    public boolean updatePm(WmsPm pm) {
        return mapper.updatePm(pm);
    }

    @Override
    public boolean addPm(WmsPm pm) {
        return mapper.addPm(pm);
    }

    @Override
    public void saveBatch(ArrayList<WmsPm> list) {
    }
}
